<form action="/cron/placement.php">
<input type="text" id="uid" name="uid"><input type='submit' name='submit' value="Check" />
</form>

<?php
set_time_limit(0);
$root=preg_replace('/cron$/', '', dirname(__FILE__));

require_once($root."inc.config.php");

require_once($root."initialize.php");

$no=0;
$uid = $_GET['uid'];
if(trim($uid)!=""){

if(($db_msg=cron_initialize()) !== true){
	print_r("Connection error");
}else{
	$user = mysql_fetch_assoc(mysql_query("SELECT id,matrix_upline,name FROM gg_users WHERE id=".$uid));
	$id = $user['id'];
	$upline_id = $user['matrix_upline'];
	$name = $user['name'];

	if($upline_id>0)
	{
		print_r($id." - ".$name."<br>");
		
		while($upline_id>0){
			$user = mysql_fetch_assoc(mysql_query("SELECT id,matrix_upline,name FROM gg_users WHERE id=".$upline_id));
			$id = $user['id'];
			$upline_id = $user['matrix_upline'];
			$name = $user['name'];
			print_r($id." - ".$name."<br>");
		}
	}		
}
}
exit;		
?>